<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Welcome to Social Network Project</title>
<script type="text/javascript" src="checkWelcomePageParameters.js"></script>
<script type="text/javascript" src="jquery-1.5.2.min.js"></script>

<script type="text/javascript">
	$(document).ready(function() {
		var link = $('a.register');
		link.click(function() {
			var pageLink = $(this).attr('href');
			$('div.placeholder').load(pageLink);

			return false;
		});
	});
</script>

<style type="text/css">
body {
	background-color: #AAAAAA;
}

.mid {
	background-image: url('1.png');
	background-repeat: repeat-x;
	height: 710px;
	width: 70%;
}
</style>
</head>
<body>
	<div class="header" align="center" style="height: 127px;">
		<br>
		<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
			codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
			width="1277" height="177" id="mymoviename">
			<param name="movie" alue="Social Network FTN.swf" />
			<param name="quality" value="high" />
			<param name="bgcolor" value="#ffffff" />
			<embed src="SocialNetworkFTN.swf" quality="high" bgcolor="#ffffff"
				width="1177" height="127" name="mymoviename" align="center"
				type="application/x-shockwave-flash"
				pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
		</object>
	</div>
	<div align="center">
		<div class="mid">
			<div class="content" align="center">

				<h3 style="color: white;">&nbsp; &nbsp; Welcome!</h3>
				<h4 style="color: white;">
					&nbsp; &nbsp; You can now Log In, <a class="register"
						href="Register.jsp">register</a> , or cruise as a <a
						href="GuestHomePage.jsp">guest user</a>.
				</h4>
				<form action="LoginServlet" method="post" name="loginForm"
					onsubmit="return checkLoginParameters()">
					<table border="0">
						<tr>
							<td style="color: white;">Username:</td>
							<td style="color: white;">Password:</td>
							<td>&nbsp;</td>
						</tr>
						<tr>
							<td><input type="text" name="LoginUsername"></input>
							</td>
							<td><input type="password" name="LoginPassword"></input>
							</td>
							<td><input type="submit" name="btnLogin" value="Login"></input>
							</td>
						</tr>
					</table>
				</form>
				<div class="placeholder"></div>
				<div class="leftcolumn-inner-welcome">
					<c:choose>
						<c:when test='${loginStatus == "LOGIN_FAILED"}'>
							<b style="color: red">Incorrect Username Or Password.Please
								Try Again...</b>
						</c:when>
						<c:when test='${loginStatus == "PROFILE_NOT_ACTIVE"}'>
							<b style="color: red">Profile With Given Username Is Not
								(Yet) Active.Please Activate Profile...</b>
						</c:when>
						<c:when test='${loginStatus == "USER_ALREADY_LOGGED_IN"}'>
							<b style="color: red">Profile With Given Username Is Already
								Logged In.Please Try Different User...</b>
						</c:when>
						<c:otherwise>
						</c:otherwise>
					</c:choose>
				</div>
			</div>
		</div>
	</div>


</body>
</html>